using System;
using System.Collections.Generic;
using System.Text;

namespace Personalplaner
{
    class PDiversRow : IPersonRow
    {
        List<IPersonColumn> column = new List<IPersonColumn>();

        string planName;
        string datum;
        string stunden;
        string grund;



        public void SetData()
        {
            PDiversColumn tmpCol = new PDiversColumn();
            tmpCol.Caption = "Planname";
            tmpCol.Wert = planName;
            column.Add(tmpCol);

            tmpCol = new PDiversColumn();
            tmpCol.Caption = "Datum";
            tmpCol.Wert = datum;
            column.Add(tmpCol);

            tmpCol = new PDiversColumn();
            tmpCol.Caption = "Stunden";
            tmpCol.Wert = stunden;
            column.Add(tmpCol);

            tmpCol = new PDiversColumn();
            tmpCol.Caption = "Grund";
            tmpCol.Wert = grund;
            column.Add(tmpCol);
        }

        #region Properties
        public List<IPersonColumn> Column
        {
            get { return column; }
            set { column = value; }
        }
        public string Grund
        {
            set { grund = value; }
        }
        public string Stunden
        {
            set { stunden = value; }
        }
        public string Datum
        {
            set { datum = value; }
        }
        public string PlanName
        {
            set { planName = value; }
        }
        #endregion
    }
}
